﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class state_Success : MonoBehaviour {

    // Use this for initialization
    void Start()
    {
        var btn = this.transform.Find("Button").GetComponent<UnityEngine.UI.Button>();
        btn.onClick.AddListener(onBtnDown);
    }

    void onBtnDown()
    {
        UnityEngine.SceneManagement.SceneManager.LoadScene("Level_Start");
    }

    // Update is called once per frame
    void Update () {
		
	}
}
